package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface ITravelCommendService {

    PageInfo<TravelCommend> query(QueryObject qo);

    void  saveOrUpdate(TravelCommend entity);

    /**
     * 按照类型查询推荐游记
     * @param qo
     * @return
     */
    List<Map<String, Object>> listCommends(Integer type);
}
